package com.cwiyc.orderonlineback.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FeedbackMapper {

    @Insert("insert into feedback (mes,uid) values (#{mes},#{uid})")
    int tofd(String mes, int uid);

    @Select("select fid from feedback order by fid DESC limit 1")
    int getfd();

    @Insert("insert into feedbackdetail (img,belong) values (#{s},#{fid})")
    int tofddt(String s, int fid);
}

